const Pool = require('pg-pool')

/**
 * 连接
 * @param {*} config 配置对象
 * @returns client
 */
function connect(config) {
  var pool = new Pool(config)
  return pool.connect()
}

module.exports = connect